package com.hycat.mail.cart.client;

import com.hycat.mail.cart.vo.SkuInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 吕泽浩业
 * @version 1.0
 */
@FeignClient(value = "mail-product", path = "/product")
public interface ProductClient {

    @GetMapping("/skuinfo/info/{skuId}")
    SkuInfoVo skuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping("/listBySkuIds")
    List<SkuInfoVo> listBySkuIds(@RequestParam("skuIds") List<Long> skuIds);

    @GetMapping("/skusaleattrvalue/listSaleValue/{skuId}")
    List<String> listSaleValue(@PathVariable("skuId") Long skuId);
}

